package org.ucas.faker.web.fetcher.op;

import java.io.Serializable;

public class Limit  implements Serializable {

  public Long start = 0L;

  public Integer total;

  public Limit(Long start, Integer total) {
    this.start = start;
    this.total = total;
  }

  public String sql() {
    return "LIMIT " + ((start == null || start == 0)? total : start.toString() + ","+total.toString());
  }
}

